package com.example.mxs.dao;

import com.example.mxs.domain.Menu;
import com.example.mxs.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MenuRepository extends JpaRepository<Menu,Integer> {

public List<Menu> findAllByLevel(int level);

}
